<?php get_header(); ?>
<div id="container" class="cf">
<div id="main" class="cat_eve">
<?php $post = $posts[0]; ?>
<?php
if (have_posts()) : 
?>
<h3 class="archive">"<?php the_search_query(); ?>"の検索結果<span>(<?php $my_query =& new WP_Query("s=$s & showposts=-1"); echo $my_query->post_count; ?>件)</span></h3>
<div class="lists">
<?php
global $query_string;
query_posts( $query_string . "&posts_per_page=25&paged=".$paged );
while (have_posts()) : the_post();
?>
<h2>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute( array('before' => 'Permalink to: ', 'after' => '')); ?>">
<?php
if(mb_strlen($post->post_title,'UTF-8')>35) {
$title= mb_substr($post->post_title,0,35,'UTF-8');
echo $title.…;} else {
echo $post->post_title;}
?></a>
<br/><span>(<?php the_time('m.d.Y'); ?>)</span>
</h2>
<?php endwhile; ?>
</div>
<?php navi(); ?>
<div class="fb-activity" data-site="http://8bitnews.asia/" data-width="640" data-height="300" data-header="false" data-colorscheme="dark" data-linktarget="_parent" data-border-color="#000000" data-font="tahoma" data-recommendations="true"></div>
<?php else : ?>
<h3 class="archive">"<?php the_search_query(); ?>"の検索結果</h3>
<p>Not Found</p>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>